package com.springcloud.microserviceeurekaorder.service;

import com.springcloud.microserviceeurekaorder.hystrix.HelloHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "single-provider",fallback = HelloHystrix.class)
public interface IHelloService {

    @RequestMapping(value = "/hello")
    String hello();

    @RequestMapping(value = "nice")
    String nice();
}
